module.exports = {
  getAllUsers(data, fun) {
    db.connect('select * from users', data, fun)
  },
  login(data, fun) {
    db.connect('select * from users where userName=? and password=?', data, fun)
  },
  register(data, fun) {
    db.connect("INSERT INTO users(userName,password) VALUES (?,?)", data, fun)
  },
}